<template>
  <div class="page-search">
    <ZZYform v-model="formData" v-bind="searchFormConfig">
      <template #header><h1 class="header">高级检索</h1></template>
      <template #footer>
        <div class="footer">
          <el-button class="el-icon-zoom-in">搜索</el-button>
          <el-button class="el-icon-refresh">重置</el-button>
        </div>
      </template>
    </ZZYform>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive } from 'vue'
import ZZYform from '@/base-ui/form/index'

export default defineComponent({
  props: {
    searchFormConfig: {
      type: Object,
      required: true
    }
  },
  components: { ZZYform },
  setup() {
    const formData = reactive({
      id: '',
      name: '',
      password: '',
      sport: '',
      createTime: ''
    })
    return { formData }
  }
})
</script>

<style scoped>
.header {
  color: #000;
}
.footer {
  text-align: right;
  padding: 0 30px 20px 0;
}
</style>
